﻿@using YanForum.Engine.ViewModels
@model ManageCommentOptions

<div class="row">
    <div class="col-md-12">
        @using (Html.BeginForm("Index", "CommentAdmin", new { area = "Admin" }, FormMethod.Get, new { @class = "form-horizontal" }))
        {
            <div class="form-group">
                <div class="col-sm-3">
                    @Html.TextBoxFor(r => r.Search, new { @class = "form-control", @placeholder = "Từ khóa" })
                </div>
                <div class="col-sm-3">
                    @Html.TextBoxFor(r => r.UserName, new { @class = "form-control", @placeholder = "User Name" })
                </div>
                <div class="col-sm-3">
                    @*@Html.TextBoxFor(r => r.CreateDate, new { @class = "form-control", @placeholder = "Ngày đăng" })*@
                    <div id="datetimepicker" class="input-group date">
                        @Html.TextBoxFor(r => r.CreateDate, new { @class = "form-control", @placeholder = "Ngày đăng" })
                        <span class="add-on input-group-addon">
                            <i data-time-icon="icon-time" data-date-icon="glyphicon glyphicon-calendar"></i>
                        </span>
                    </div>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-3">
                    <label>@Html.RadioButtonFor(model => model.Approved, "true") Đã duyệt</label>
                    <label>@Html.RadioButtonFor(model => model.Approved, "false") Chưa duyệt</label>
                </div>
                <div class="col-sm-3">
                    <button type="submit" class="btn btn-success">Tìm kiếm</button>
                </div>
            </div>
        }
    </div>
</div>
